home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-25 | 1.3 KB | 32 lines | [TEXT/GEOL] |
- Item 7144701 21-May-90 10:40PDT
-
- From: D1974 NorthWest Rsch Assoc, D Lucas,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: MACAPP.TEST MacApp SQA Team
- D1974 NorthWest Rsch Assoc, D Lucas,PRT
-
- Sub: TGridView.IRes Bug
-
- This is a bug report for TGridView.IRes and TGridView.IGridView (ß9). These
- methods do not set handle-based instance variables to NIL before performing
- code that can fail and call Free. TGridView.IRes starts by calling inherited
- IRes, which is TView.IRes, which calls TView.IView, which can fail and free
- SELF. If that happened, TGridView.Free will attempt to dispose of three
- regions (fSelections, fHLRegion, and fTempSelections) and two TRunArrays
- (fColWidths and fRowHeights) which were not initialized. Boom! IGridView does
- initialize fColWidths and fRowHeights before calling IView, but leaves the
- three regions uninitialized.
-
- I was bitten by the TGridView.IRes bug. My fix is to NIL the five variables in
- my override of this method before calling the inherited IRes. (I had already
- overriden this method for other reasons.)
-
- Let me know if I am wrong about this. Please address links to me at D1974, as
- I am not tracking MACAPP.TECH$.
-
- Dave Lucas,
- Visualogic, Inc.
-
-